# -*- coding: utf-8 -*-

def is_palindrome(n):
    ns = str(n)
    count = len(ns)
    for x in range(count // 2):
        if(ns[x]  != ns[-x - 1]):
            return False
    return True

def main():
    output = filter(is_palindrome,range(1,1000))
    print(list(output))

if __name__ == '__main__':
    main()